package ee.serge.service;

import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;

import ee.serge.shared.Feedback;
import ee.serge.shared.Loan;

public interface PublicServiceAsync {

   void getLoans(AsyncCallback<List<Loan>> callback);
   
   void getLoan(long id, AsyncCallback<Loan> callback);
   
   void addFeedback(Feedback feedback, String challenge, String response, AsyncCallback<Void> callback);
   
   void verifyChallenge(String challenge, String response, AsyncCallback<Boolean> callback);
   
   void getFeedbackList(String loanKey, AsyncCallback<List<Feedback>> callback);
   
}
